package com.ruoyi.record.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.mybatisplus.core.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 岗位调整记录对象 record_post
 * 
 * @author ruoyi
 * @date 2023-05-26
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("record_post")
public class RecordPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 员工id */
    private Long userId;

    @TableField(exist = false)
    private String userNo;

    @TableField(exist = false)
    @Excel(name = "员工姓名")
    private String userName;

    @TableField(exist = false)
    @Excel(name = "身份证号")
    private String idCard;

    /** 原岗位 */
    @Excel(name = "原岗位")
    private String oldPost;

    /** 现岗位 */
    @Excel(name = "现岗位")
    private String postName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间")
    private String startTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间")
    private String endTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调整时间")
    private String changeTime;

    /** 是否默认 */
    @Excel(name = "是否默认", dictType = "sys_yes_no", comboDict = "sys_yes_no")
    private String isDefault;

    /** 删除标识 */
    @TableLogic
    private String delFlag;

    @TableField(exist = false)
    private Long deptId;

}
